package com.zmzncs.lmtc.module.order.pojo.order_trade_record;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import com.zmzncs.lmtc.module.customer.pojo.card.HasCardDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单-订单交易记录
 * </p>
 *
 * @author 任建波
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_trade_record")
@ApiModel(value="InfoTradeRecord对象", description="订单-订单交易记录")
public class OrderTradeRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderCode;

    @ApiModelProperty(value = "应付金额")
    private BigDecimal payableAmount;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal paidAmount;

    @ApiModelProperty(value = "交易流水号")
    private String tradeNo;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "交易类型（1：预支付，2：出场支付，3：不确定（补录的交易记录））")
    private Integer tradeType;

    @ApiModelProperty(value = "支付类型（1：月租卡；2：白天卡；3：夜间卡；4：余额；5：现金；99：其他）")
    private Integer payType;

    @ApiModelProperty(value = "支付状态（0：待支付，1：已支付，2：取消支付）")
    private Integer payStatus;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "支付状况说明")
    private String payMsg;

    @ApiModelProperty(value = "预付后免费出场时长（分钟）")
    private Integer freeOutTime;

    @ApiModelProperty(value = "垫付状态（0：无垫付，1：待支付，2：已支付）")
    private Integer behalfPayStatus;

    @ApiModelProperty(value = "支付给停车场的金额")
    private BigDecimal paidParkAmount;

    @ApiModelProperty(value = "停车费分润（百分百）")
    private BigDecimal orderDivide;

}
